package edu.sctu.zhoumengxue.day201505.day20150510;

/**
 * Created by user12 on 2015/5/10.
 */
public class Two {

    private One[] ones;

    public Two(One[] ones){
        this.ones = ones;
    }

    public Two() {

    }

    public void isFor(){

        for(One one : ones){
            if(one.getAge()<20){
                System.out.println(" 姓名:"+one.getName()+"  学号:"+one.getNumber()+"  年龄:"+one.getAge()+"  性别:"+one.getSex());

            }

        }

    }

}


